<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - iris.info - /usr/include/wchar.h</title>
  <link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../index.html">directory</a> - <a href="index.html">usr/include</a> - wchar.h</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>iris.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-05-24</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">6</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">0.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">0</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : /* Copyright (C) 1995-2004,2005,2006,2007 Free Software Foundation, Inc.
<span class="lineNum">       2 </span>                :    This file is part of the GNU C Library.
<span class="lineNum">       3 </span>                : 
<span class="lineNum">       4 </span>                :    The GNU C Library is free software; you can redistribute it and/or
<span class="lineNum">       5 </span>                :    modify it under the terms of the GNU Lesser General Public
<span class="lineNum">       6 </span>                :    License as published by the Free Software Foundation; either
<span class="lineNum">       7 </span>                :    version 2.1 of the License, or (at your option) any later version.
<span class="lineNum">       8 </span>                : 
<span class="lineNum">       9 </span>                :    The GNU C Library is distributed in the hope that it will be useful,
<span class="lineNum">      10 </span>                :    but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      11 </span>                :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
<span class="lineNum">      12 </span>                :    Lesser General Public License for more details.
<span class="lineNum">      13 </span>                : 
<span class="lineNum">      14 </span>                :    You should have received a copy of the GNU Lesser General Public
<span class="lineNum">      15 </span>                :    License along with the GNU C Library; if not, write to the Free
<span class="lineNum">      16 </span>                :    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
<span class="lineNum">      17 </span>                :    02111-1307 USA.  */
<span class="lineNum">      18 </span>                : 
<span class="lineNum">      19 </span>                : /*
<span class="lineNum">      20 </span>                :  *      ISO C99 Standard: 7.24
<span class="lineNum">      21 </span>                :  *      Extended multibyte and wide character utilities &lt;wchar.h&gt;
<span class="lineNum">      22 </span>                :  */
<span class="lineNum">      23 </span>                : 
<span class="lineNum">      24 </span>                : #ifndef _WCHAR_H
<span class="lineNum">      25 </span>                : 
<span class="lineNum">      26 </span>                : #if !defined __need_mbstate_t &amp;&amp; !defined __need_wint_t
<span class="lineNum">      27 </span>                : # define _WCHAR_H 1
<span class="lineNum">      28 </span>                : # include &lt;features.h&gt;
<span class="lineNum">      29 </span>                : #endif
<span class="lineNum">      30 </span>                : 
<span class="lineNum">      31 </span>                : #ifdef _WCHAR_H
<span class="lineNum">      32 </span>                : /* Get FILE definition.  */
<span class="lineNum">      33 </span>                : # define __need___FILE
<span class="lineNum">      34 </span>                : # if defined __USE_UNIX98 || defined __USE_XOPEN2K
<span class="lineNum">      35 </span>                : #  define __need_FILE
<span class="lineNum">      36 </span>                : # endif
<span class="lineNum">      37 </span>                : # include &lt;stdio.h&gt;
<span class="lineNum">      38 </span>                : /* Get va_list definition.  */
<span class="lineNum">      39 </span>                : # define __need___va_list
<span class="lineNum">      40 </span>                : # include &lt;stdarg.h&gt;
<span class="lineNum">      41 </span>                : 
<span class="lineNum">      42 </span>                : # include &lt;bits/wchar.h&gt;
<span class="lineNum">      43 </span>                : 
<span class="lineNum">      44 </span>                : /* Get size_t, wchar_t, wint_t and NULL from &lt;stddef.h&gt;.  */
<span class="lineNum">      45 </span>                : # define __need_size_t
<span class="lineNum">      46 </span>                : # define __need_wchar_t
<span class="lineNum">      47 </span>                : # define __need_NULL
<span class="lineNum">      48 </span>                : #endif
<span class="lineNum">      49 </span>                : #if defined _WCHAR_H || defined __need_wint_t || !defined __WINT_TYPE__
<span class="lineNum">      50 </span>                : # undef __need_wint_t
<span class="lineNum">      51 </span>                : # define __need_wint_t
<span class="lineNum">      52 </span>                : # include &lt;stddef.h&gt;
<span class="lineNum">      53 </span>                : 
<span class="lineNum">      54 </span>                : /* We try to get wint_t from &lt;stddef.h&gt;, but not all GCC versions define it
<span class="lineNum">      55 </span>                :    there.  So define it ourselves if it remains undefined.  */
<span class="lineNum">      56 </span>                : # ifndef _WINT_T
<span class="lineNum">      57 </span>                : /* Integral type unchanged by default argument promotions that can
<span class="lineNum">      58 </span>                :    hold any value corresponding to members of the extended character
<span class="lineNum">      59 </span>                :    set, as well as at least one value that does not correspond to any
<span class="lineNum">      60 </span>                :    member of the extended character set.  */
<span class="lineNum">      61 </span>                : #  define _WINT_T
<span class="lineNum">      62 </span>                : typedef unsigned int wint_t;
<span class="lineNum">      63 </span>                : # else
<span class="lineNum">      64 </span>                : /* Work around problems with the &lt;stddef.h&gt; file which doesn't put
<span class="lineNum">      65 </span>                :    wint_t in the std namespace.  */
<span class="lineNum">      66 </span>                : #  if defined __cplusplus &amp;&amp; defined _GLIBCPP_USE_NAMESPACES \
<span class="lineNum">      67 </span>                :       &amp;&amp; defined __WINT_TYPE__
<span class="lineNum">      68 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">      69 </span>                : typedef __WINT_TYPE__ wint_t;
<span class="lineNum">      70 </span>                : __END_NAMESPACE_STD
<span class="lineNum">      71 </span>                : #  endif
<span class="lineNum">      72 </span>                : # endif
<span class="lineNum">      73 </span>                : #endif
<span class="lineNum">      74 </span>                : 
<span class="lineNum">      75 </span>                : #if (defined _WCHAR_H || defined __need_mbstate_t) &amp;&amp; !defined __mbstate_t_defined
<span class="lineNum">      76 </span>                : # define __mbstate_t_defined    1
<span class="lineNum">      77 </span>                : /* Conversion state information.  */
<span class="lineNum">      78 </span>                : typedef struct
<span class="lineNum">      79 </span>                : {
<span class="lineNum">      80 </span>                :   int __count;
<span class="lineNum">      81 </span>                :   union
<span class="lineNum">      82 </span>                :   {
<span class="lineNum">      83 </span>                : # ifdef __WINT_TYPE__
<span class="lineNum">      84 </span>                :     __WINT_TYPE__ __wch;
<span class="lineNum">      85 </span>                : # else
<span class="lineNum">      86 </span>                :     wint_t __wch;
<span class="lineNum">      87 </span>                : # endif
<span class="lineNum">      88 </span>                :     char __wchb[4];
<span class="lineNum">      89 </span>                :   } __value;            /* Value so far.  */
<span class="lineNum">      90 </span>                : } __mbstate_t;
<span class="lineNum">      91 </span>                : #endif
<span class="lineNum">      92 </span>                : #undef __need_mbstate_t
<span class="lineNum">      93 </span>                : 
<span class="lineNum">      94 </span>                : 
<span class="lineNum">      95 </span>                : /* The rest of the file is only used if used if __need_mbstate_t is not
<span class="lineNum">      96 </span>                :    defined.  */
<span class="lineNum">      97 </span>                : #ifdef _WCHAR_H
<span class="lineNum">      98 </span>                : 
<span class="lineNum">      99 </span>                : __BEGIN_NAMESPACE_C99
<span class="lineNum">     100 </span>                : /* Public type.  */
<span class="lineNum">     101 </span>                : typedef __mbstate_t mbstate_t;
<span class="lineNum">     102 </span>                : __END_NAMESPACE_C99
<span class="lineNum">     103 </span>                : #ifdef __USE_GNU
<span class="lineNum">     104 </span>                : __USING_NAMESPACE_C99(mbstate_t)
<span class="lineNum">     105 </span>                : #endif
<span class="lineNum">     106 </span>                : 
<span class="lineNum">     107 </span>                : #ifndef WCHAR_MIN
<span class="lineNum">     108 </span>                : /* These constants might also be defined in &lt;inttypes.h&gt;.  */
<span class="lineNum">     109 </span>                : # define WCHAR_MIN __WCHAR_MIN
<span class="lineNum">     110 </span>                : # define WCHAR_MAX __WCHAR_MAX
<span class="lineNum">     111 </span>                : #endif
<span class="lineNum">     112 </span>                : 
<span class="lineNum">     113 </span>                : #ifndef WEOF
<span class="lineNum">     114 </span>                : # define WEOF (0xffffffffu)
<span class="lineNum">     115 </span>                : #endif
<span class="lineNum">     116 </span>                : 
<span class="lineNum">     117 </span>                : /* For XPG4 compliance we have to define the stuff from &lt;wctype.h&gt; here
<span class="lineNum">     118 </span>                :    as well.  */
<span class="lineNum">     119 </span>                : #if defined __USE_XOPEN &amp;&amp; !defined __USE_UNIX98
<span class="lineNum">     120 </span>                : # include &lt;wctype.h&gt;
<span class="lineNum">     121 </span>                : #endif
<span class="lineNum">     122 </span>                : 
<span class="lineNum">     123 </span>                : 
<span class="lineNum">     124 </span>                : __BEGIN_DECLS
<span class="lineNum">     125 </span>                : 
<span class="lineNum">     126 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     127 </span>                : /* This incomplete type is defined in &lt;time.h&gt; but needed here because
<span class="lineNum">     128 </span>                :    of `wcsftime'.  */
<span class="lineNum">     129 </span>                : struct tm;
<span class="lineNum">     130 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     131 </span>                : /* XXX We have to clean this up at some point.  Since tm is in the std
<span class="lineNum">     132 </span>                :    namespace but wcsftime is in __c99 the type wouldn't be found
<span class="lineNum">     133 </span>                :    without inserting it in the global namespace.  */
<span class="lineNum">     134 </span>                : __USING_NAMESPACE_STD(tm)
<span class="lineNum">     135 </span>                : 
<span class="lineNum">     136 </span>                : 
<span class="lineNum">     137 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     138 </span>                : /* Copy SRC to DEST.  */
<span class="lineNum">     139 </span>                : extern wchar_t *wcscpy (wchar_t *__restrict __dest,
<span class="lineNum">     140 </span>                :                         __const wchar_t *__restrict __src) __THROW;
<span class="lineNum">     141 </span>                : /* Copy no more than N wide-characters of SRC to DEST.  */
<span class="lineNum">     142 </span>                : extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
<span class="lineNum">     143 </span>                :                          __const wchar_t *__restrict __src, size_t __n)
<span class="lineNum">     144 </span>                :      __THROW;
<span class="lineNum">     145 </span>                : 
<span class="lineNum">     146 </span>                : /* Append SRC onto DEST.  */
<span class="lineNum">     147 </span>                : extern wchar_t *wcscat (wchar_t *__restrict __dest,
<span class="lineNum">     148 </span>                :                         __const wchar_t *__restrict __src) __THROW;
<span class="lineNum">     149 </span>                : /* Append no more than N wide-characters of SRC onto DEST.  */
<span class="lineNum">     150 </span>                : extern wchar_t *wcsncat (wchar_t *__restrict __dest,
<span class="lineNum">     151 </span>                :                          __const wchar_t *__restrict __src, size_t __n)
<span class="lineNum">     152 </span>                :      __THROW;
<span class="lineNum">     153 </span>                : 
<span class="lineNum">     154 </span>                : /* Compare S1 and S2.  */
<span class="lineNum">     155 </span>                : extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
<span class="lineNum">     156 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     157 </span>                : /* Compare N wide-characters of S1 and S2.  */
<span class="lineNum">     158 </span>                : extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
<span class="lineNum">     159 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     160 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     161 </span>                : 
<span class="lineNum">     162 </span>                : #ifdef __USE_GNU
<span class="lineNum">     163 </span>                : /* Compare S1 and S2, ignoring case.  */
<span class="lineNum">     164 </span>                : extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __THROW;
<span class="lineNum">     165 </span>                : 
<span class="lineNum">     166 </span>                : /* Compare no more than N chars of S1 and S2, ignoring case.  */
<span class="lineNum">     167 </span>                : extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
<span class="lineNum">     168 </span>                :                         size_t __n) __THROW;
<span class="lineNum">     169 </span>                : 
<span class="lineNum">     170 </span>                : /* Similar to the two functions above but take the information from
<span class="lineNum">     171 </span>                :    the provided locale and not the global locale.  */
<span class="lineNum">     172 </span>                : # include &lt;xlocale.h&gt;
<span class="lineNum">     173 </span>                : 
<span class="lineNum">     174 </span>                : extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
<span class="lineNum">     175 </span>                :                          __locale_t __loc) __THROW;
<span class="lineNum">     176 </span>                : 
<span class="lineNum">     177 </span>                : extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
<span class="lineNum">     178 </span>                :                           size_t __n, __locale_t __loc) __THROW;
<span class="lineNum">     179 </span>                : #endif
<span class="lineNum">     180 </span>                : 
<span class="lineNum">     181 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     182 </span>                : /* Compare S1 and S2, both interpreted as appropriate to the
<span class="lineNum">     183 </span>                :    LC_COLLATE category of the current locale.  */
<span class="lineNum">     184 </span>                : extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __THROW;
<span class="lineNum">     185 </span>                : /* Transform S2 into array pointed to by S1 such that if wcscmp is
<span class="lineNum">     186 </span>                :    applied to two transformed strings the result is the as applying
<span class="lineNum">     187 </span>                :    `wcscoll' to the original strings.  */
<span class="lineNum">     188 </span>                : extern size_t wcsxfrm (wchar_t *__restrict __s1,
<span class="lineNum">     189 </span>                :                        __const wchar_t *__restrict __s2, size_t __n) __THROW;
<span class="lineNum">     190 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     191 </span>                : 
<span class="lineNum">     192 </span>                : #ifdef __USE_GNU
<span class="lineNum">     193 </span>                : /* Similar to the two functions above but take the information from
<span class="lineNum">     194 </span>                :    the provided locale and not the global locale.  */
<span class="lineNum">     195 </span>                : 
<span class="lineNum">     196 </span>                : /* Compare S1 and S2, both interpreted as appropriate to the
<span class="lineNum">     197 </span>                :    LC_COLLATE category of the given locale.  */
<span class="lineNum">     198 </span>                : extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
<span class="lineNum">     199 </span>                :                       __locale_t __loc) __THROW;
<span class="lineNum">     200 </span>                : 
<span class="lineNum">     201 </span>                : /* Transform S2 into array pointed to by S1 such that if wcscmp is
<span class="lineNum">     202 </span>                :    applied to two transformed strings the result is the as applying
<span class="lineNum">     203 </span>                :    `wcscoll' to the original strings.  */
<span class="lineNum">     204 </span>                : extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
<span class="lineNum">     205 </span>                :                          size_t __n, __locale_t __loc) __THROW;
<span class="lineNum">     206 </span>                : 
<span class="lineNum">     207 </span>                : /* Duplicate S, returning an identical malloc'd string.  */
<span class="lineNum">     208 </span>                : extern wchar_t *wcsdup (__const wchar_t *__s) __THROW __attribute_malloc__;
<span class="lineNum">     209 </span>                : #endif
<span class="lineNum">     210 </span>                : 
<span class="lineNum">     211 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     212 </span>                : /* Find the first occurrence of WC in WCS.  */
<span class="lineNum">     213 </span>                : extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
<span class="lineNum">     214 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     215 </span>                : /* Find the last occurrence of WC in WCS.  */
<span class="lineNum">     216 </span>                : extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
<span class="lineNum">     217 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     218 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     219 </span>                : 
<span class="lineNum">     220 </span>                : #ifdef __USE_GNU
<span class="lineNum">     221 </span>                : /* This function is similar to `wcschr'.  But it returns a pointer to
<span class="lineNum">     222 </span>                :    the closing NUL wide character in case C is not found in S.  */
<span class="lineNum">     223 </span>                : extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
<span class="lineNum">     224 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     225 </span>                : #endif
<span class="lineNum">     226 </span>                : 
<span class="lineNum">     227 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     228 </span>                : /* Return the length of the initial segmet of WCS which
<span class="lineNum">     229 </span>                :    consists entirely of wide characters not in REJECT.  */
<span class="lineNum">     230 </span>                : extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
<span class="lineNum">     231 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     232 </span>                : /* Return the length of the initial segmet of WCS which
<span class="lineNum">     233 </span>                :    consists entirely of wide characters in  ACCEPT.  */
<span class="lineNum">     234 </span>                : extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
<span class="lineNum">     235 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     236 </span>                : /* Find the first occurrence in WCS of any character in ACCEPT.  */
<span class="lineNum">     237 </span>                : extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
<span class="lineNum">     238 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     239 </span>                : /* Find the first occurrence of NEEDLE in HAYSTACK.  */
<span class="lineNum">     240 </span>                : extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
<span class="lineNum">     241 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     242 </span>                : 
<span class="lineNum">     243 </span>                : /* Divide WCS into tokens separated by characters in DELIM.  */
<span class="lineNum">     244 </span>                : extern wchar_t *wcstok (wchar_t *__restrict __s,
<span class="lineNum">     245 </span>                :                         __const wchar_t *__restrict __delim,
<span class="lineNum">     246 </span>                :                         wchar_t **__restrict __ptr) __THROW;
<span class="lineNum">     247 </span>                : 
<span class="lineNum">     248 </span>                : /* Return the number of wide characters in S.  */
<span class="lineNum">     249 </span>                : extern size_t wcslen (__const wchar_t *__s) __THROW __attribute_pure__;
<span class="lineNum">     250 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     251 </span>                : 
<span class="lineNum">     252 </span>                : #ifdef __USE_XOPEN
<span class="lineNum">     253 </span>                : /* Another name for `wcsstr' from XPG4.  */
<span class="lineNum">     254 </span>                : extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle)
<span class="lineNum">     255 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     256 </span>                : #endif
<span class="lineNum">     257 </span>                : 
<span class="lineNum">     258 </span>                : #ifdef __USE_GNU
<span class="lineNum">     259 </span>                : /* Return the number of wide characters in S, but at most MAXLEN.  */
<span class="lineNum">     260 </span>                : extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
<span class="lineNum">     261 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     262 </span>                : #endif
<span class="lineNum">     263 </span>                : 
<span class="lineNum">     264 </span>                : 
<span class="lineNum">     265 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     266 </span>                : /* Search N wide characters of S for C.  */
<span class="lineNum">     267 </span>                : extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
<span class="lineNum">     268 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     269 </span>                : 
<span class="lineNum">     270 </span>                : /* Compare N wide characters of S1 and S2.  */
<span class="lineNum">     271 </span>                : extern int wmemcmp (__const wchar_t *__restrict __s1,
<span class="lineNum">     272 </span>                :                     __const wchar_t *__restrict __s2, size_t __n)
<span class="lineNum">     273 </span>                :      __THROW __attribute_pure__;
<span class="lineNum">     274 </span>                : 
<span class="lineNum">     275 </span>                : /* Copy N wide characters of SRC to DEST.  */
<span class="lineNum">     276 </span>                : extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
<span class="lineNum">     277 </span>                :                          __const wchar_t *__restrict __s2, size_t __n) __THROW;
<span class="lineNum">     278 </span>                : 
<span class="lineNum">     279 </span>                : /* Copy N wide characters of SRC to DEST, guaranteeing
<span class="lineNum">     280 </span>                :    correct behavior for overlapping strings.  */
<span class="lineNum">     281 </span>                : extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
<span class="lineNum">     282 </span>                :      __THROW;
<span class="lineNum">     283 </span>                : 
<span class="lineNum">     284 </span>                : /* Set N wide characters of S to C.  */
<span class="lineNum">     285 </span>                : extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
<span class="lineNum">     286 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     287 </span>                : 
<span class="lineNum">     288 </span>                : #ifdef __USE_GNU
<span class="lineNum">     289 </span>                : /* Copy N wide characters of SRC to DEST and return pointer to following
<span class="lineNum">     290 </span>                :    wide character.  */
<span class="lineNum">     291 </span>                : extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
<span class="lineNum">     292 </span>                :                           __const wchar_t *__restrict __s2, size_t __n)
<span class="lineNum">     293 </span>                :      __THROW;
<span class="lineNum">     294 </span>                : #endif
<span class="lineNum">     295 </span>                : 
<span class="lineNum">     296 </span>                : 
<span class="lineNum">     297 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     298 </span>                : /* Determine whether C constitutes a valid (one-byte) multibyte
<span class="lineNum">     299 </span>                :    character.  */
<span class="lineNum">     300 </span>                : extern wint_t btowc (int __c) __THROW;
<span class="lineNum">     301 </span>                : 
<span class="lineNum">     302 </span>                : /* Determine whether C corresponds to a member of the extended
<span class="lineNum">     303 </span>                :    character set whose multibyte representation is a single byte.  */
<span class="lineNum">     304 </span>                : extern int wctob (wint_t __c) __THROW;
<span class="lineNum">     305 </span>                : 
<span class="lineNum">     306 </span>                : /* Determine whether PS points to an object representing the initial
<span class="lineNum">     307 </span>                :    state.  */
<span class="lineNum">     308 </span>                : extern int mbsinit (__const mbstate_t *__ps) __THROW __attribute_pure__;
<span class="lineNum">     309 </span>                : 
<span class="lineNum">     310 </span>                : /* Write wide character representation of multibyte character pointed
<span class="lineNum">     311 </span>                :    to by S to PWC.  */
<span class="lineNum">     312 </span>                : extern size_t mbrtowc (wchar_t *__restrict __pwc,
<span class="lineNum">     313 </span>                :                        __const char *__restrict __s, size_t __n,
<span class="lineNum">     314 </span>                :                        mbstate_t *__p) __THROW;
<span class="lineNum">     315 </span>                : 
<span class="lineNum">     316 </span>                : /* Write multibyte representation of wide character WC to S.  */
<span class="lineNum">     317 </span>                : extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
<span class="lineNum">     318 </span>                :                        mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     319 </span>                : 
<span class="lineNum">     320 </span>                : /* Return number of bytes in multibyte character pointed to by S.  */
<span class="lineNum">     321 </span>                : extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
<span class="lineNum">     322 </span>                :                         mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     323 </span>                : extern size_t mbrlen (__const char *__restrict __s, size_t __n,
<span class="lineNum">     324 </span>                :                       mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     325 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     326 </span>                : 
<span class="lineNum">     327 </span>                : #ifdef __USE_EXTERN_INLINES
<span class="lineNum">     328 </span>                : /* Define inline function as optimization.  */
<span class="lineNum">     329 </span>                : 
<span class="lineNum">     330 </span>                : /* We can use the BTOWC and WCTOB optimizations since we know that all
<span class="lineNum">     331 </span>                :    locales must use ASCII encoding for the values in the ASCII range
<span class="lineNum">     332 </span>                :    and because the wchar_t encoding is always ISO 10646.  */
<span class="lineNum">     333 </span>                : extern wint_t __btowc_alias (int __c) __asm (&quot;btowc&quot;);
<span class="lineNum">     334 </span>                : __extern_inline wint_t
<span class="lineNum">     335 </span><span class="lineNoCov">              0 : __NTH (btowc (int __c))</span>
<span class="lineNum">     336 </span>                : { return (__builtin_constant_p (__c) &amp;&amp; __c &gt;= '\0' &amp;&amp; __c &lt;= '\x7f'
<span class="lineNum">     337 </span><span class="lineNoCov">              0 :           ? (wint_t) __c : __btowc_alias (__c)); }</span>
<span class="lineNum">     338 </span>                : 
<span class="lineNum">     339 </span>                : extern int __wctob_alias (wint_t __c) __asm (&quot;wctob&quot;);
<span class="lineNum">     340 </span>                : __extern_inline int
<span class="lineNum">     341 </span><span class="lineNoCov">              0 : __NTH (wctob (wint_t __wc))</span>
<span class="lineNum">     342 </span>                : { return (__builtin_constant_p (__wc) &amp;&amp; __wc &gt;= L'\0' &amp;&amp; __wc &lt;= L'\x7f'
<span class="lineNum">     343 </span><span class="lineNoCov">              0 :           ? (int) __wc : __wctob_alias (__wc)); }</span>
<span class="lineNum">     344 </span>                : 
<span class="lineNum">     345 </span>                : __extern_inline size_t
<span class="lineNum">     346 </span><span class="lineNoCov">              0 : __NTH (mbrlen (__const char *__restrict __s, size_t __n,</span>
<span class="lineNum">     347 </span>                :                mbstate_t *__restrict __ps))
<span class="lineNum">     348 </span>                : { return (__ps != NULL
<span class="lineNum">     349 </span><span class="lineNoCov">              0 :           ? mbrtowc (NULL, __s, __n, __ps) : __mbrlen (__s, __n, NULL)); }</span>
<span class="lineNum">     350 </span>                : #endif
<span class="lineNum">     351 </span>                : 
<span class="lineNum">     352 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     353 </span>                : /* Write wide character representation of multibyte character string
<span class="lineNum">     354 </span>                :    SRC to DST.  */
<span class="lineNum">     355 </span>                : extern size_t mbsrtowcs (wchar_t *__restrict __dst,
<span class="lineNum">     356 </span>                :                          __const char **__restrict __src, size_t __len,
<span class="lineNum">     357 </span>                :                          mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     358 </span>                : 
<span class="lineNum">     359 </span>                : /* Write multibyte character representation of wide character string
<span class="lineNum">     360 </span>                :    SRC to DST.  */
<span class="lineNum">     361 </span>                : extern size_t wcsrtombs (char *__restrict __dst,
<span class="lineNum">     362 </span>                :                          __const wchar_t **__restrict __src, size_t __len,
<span class="lineNum">     363 </span>                :                          mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     364 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     365 </span>                : 
<span class="lineNum">     366 </span>                : 
<span class="lineNum">     367 </span>                : #ifdef  __USE_GNU
<span class="lineNum">     368 </span>                : /* Write wide character representation of at most NMC bytes of the
<span class="lineNum">     369 </span>                :    multibyte character string SRC to DST.  */
<span class="lineNum">     370 </span>                : extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
<span class="lineNum">     371 </span>                :                           __const char **__restrict __src, size_t __nmc,
<span class="lineNum">     372 </span>                :                           size_t __len, mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     373 </span>                : 
<span class="lineNum">     374 </span>                : /* Write multibyte character representation of at most NWC characters
<span class="lineNum">     375 </span>                :    from the wide character string SRC to DST.  */
<span class="lineNum">     376 </span>                : extern size_t wcsnrtombs (char *__restrict __dst,
<span class="lineNum">     377 </span>                :                           __const wchar_t **__restrict __src,
<span class="lineNum">     378 </span>                :                           size_t __nwc, size_t __len,
<span class="lineNum">     379 </span>                :                           mbstate_t *__restrict __ps) __THROW;
<span class="lineNum">     380 </span>                : #endif  /* use GNU */
<span class="lineNum">     381 </span>                : 
<span class="lineNum">     382 </span>                : 
<span class="lineNum">     383 </span>                : /* The following functions are extensions found in X/Open CAE.  */
<span class="lineNum">     384 </span>                : #ifdef __USE_XOPEN
<span class="lineNum">     385 </span>                : /* Determine number of column positions required for C.  */
<span class="lineNum">     386 </span>                : extern int wcwidth (wchar_t __c) __THROW;
<span class="lineNum">     387 </span>                : 
<span class="lineNum">     388 </span>                : /* Determine number of column positions required for first N wide
<span class="lineNum">     389 </span>                :    characters (or fewer if S ends before this) in S.  */
<span class="lineNum">     390 </span>                : extern int wcswidth (__const wchar_t *__s, size_t __n) __THROW;
<span class="lineNum">     391 </span>                : #endif  /* Use X/Open.  */
<span class="lineNum">     392 </span>                : 
<span class="lineNum">     393 </span>                : 
<span class="lineNum">     394 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     395 </span>                : /* Convert initial portion of the wide string NPTR to `double'
<span class="lineNum">     396 </span>                :    representation.  */
<span class="lineNum">     397 </span>                : extern double wcstod (__const wchar_t *__restrict __nptr,
<span class="lineNum">     398 </span>                :                       wchar_t **__restrict __endptr) __THROW;
<span class="lineNum">     399 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     400 </span>                : 
<span class="lineNum">     401 </span>                : #ifdef __USE_ISOC99
<span class="lineNum">     402 </span>                : __BEGIN_NAMESPACE_C99
<span class="lineNum">     403 </span>                : /* Likewise for `float' and `long double' sizes of floating-point numbers.  */
<span class="lineNum">     404 </span>                : extern float wcstof (__const wchar_t *__restrict __nptr,
<span class="lineNum">     405 </span>                :                      wchar_t **__restrict __endptr) __THROW;
<span class="lineNum">     406 </span>                : extern long double wcstold (__const wchar_t *__restrict __nptr,
<span class="lineNum">     407 </span>                :                             wchar_t **__restrict __endptr) __THROW;
<span class="lineNum">     408 </span>                : __END_NAMESPACE_C99
<span class="lineNum">     409 </span>                : #endif /* C99 */
<span class="lineNum">     410 </span>                : 
<span class="lineNum">     411 </span>                : 
<span class="lineNum">     412 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     413 </span>                : /* Convert initial portion of wide string NPTR to `long int'
<span class="lineNum">     414 </span>                :    representation.  */
<span class="lineNum">     415 </span>                : extern long int wcstol (__const wchar_t *__restrict __nptr,
<span class="lineNum">     416 </span>                :                         wchar_t **__restrict __endptr, int __base) __THROW;
<span class="lineNum">     417 </span>                : 
<span class="lineNum">     418 </span>                : /* Convert initial portion of wide string NPTR to `unsigned long int'
<span class="lineNum">     419 </span>                :    representation.  */
<span class="lineNum">     420 </span>                : extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
<span class="lineNum">     421 </span>                :                                   wchar_t **__restrict __endptr, int __base)
<span class="lineNum">     422 </span>                :      __THROW;
<span class="lineNum">     423 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     424 </span>                : 
<span class="lineNum">     425 </span>                : #if defined __USE_ISOC99 || (defined __GNUC__ &amp;&amp; defined __USE_GNU)
<span class="lineNum">     426 </span>                : __BEGIN_NAMESPACE_C99
<span class="lineNum">     427 </span>                : /* Convert initial portion of wide string NPTR to `long long int'
<span class="lineNum">     428 </span>                :    representation.  */
<span class="lineNum">     429 </span>                : __extension__
<span class="lineNum">     430 </span>                : extern long long int wcstoll (__const wchar_t *__restrict __nptr,
<span class="lineNum">     431 </span>                :                               wchar_t **__restrict __endptr, int __base)
<span class="lineNum">     432 </span>                :      __THROW;
<span class="lineNum">     433 </span>                : 
<span class="lineNum">     434 </span>                : /* Convert initial portion of wide string NPTR to `unsigned long long int'
<span class="lineNum">     435 </span>                :    representation.  */
<span class="lineNum">     436 </span>                : __extension__
<span class="lineNum">     437 </span>                : extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
<span class="lineNum">     438 </span>                :                                         wchar_t **__restrict __endptr,
<span class="lineNum">     439 </span>                :                                         int __base) __THROW;
<span class="lineNum">     440 </span>                : __END_NAMESPACE_C99
<span class="lineNum">     441 </span>                : #endif /* ISO C99 or GCC and GNU.  */
<span class="lineNum">     442 </span>                : 
<span class="lineNum">     443 </span>                : #if defined __GNUC__ &amp;&amp; defined __USE_GNU
<span class="lineNum">     444 </span>                : /* Convert initial portion of wide string NPTR to `long long int'
<span class="lineNum">     445 </span>                :    representation.  */
<span class="lineNum">     446 </span>                : __extension__
<span class="lineNum">     447 </span>                : extern long long int wcstoq (__const wchar_t *__restrict __nptr,
<span class="lineNum">     448 </span>                :                              wchar_t **__restrict __endptr, int __base)
<span class="lineNum">     449 </span>                :      __THROW;
<span class="lineNum">     450 </span>                : 
<span class="lineNum">     451 </span>                : /* Convert initial portion of wide string NPTR to `unsigned long long int'
<span class="lineNum">     452 </span>                :    representation.  */
<span class="lineNum">     453 </span>                : __extension__
<span class="lineNum">     454 </span>                : extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr,
<span class="lineNum">     455 </span>                :                                        wchar_t **__restrict __endptr,
<span class="lineNum">     456 </span>                :                                        int __base) __THROW;
<span class="lineNum">     457 </span>                : #endif /* GCC and use GNU.  */
<span class="lineNum">     458 </span>                : 
<span class="lineNum">     459 </span>                : #ifdef __USE_GNU
<span class="lineNum">     460 </span>                : /* The concept of one static locale per category is not very well
<span class="lineNum">     461 </span>                :    thought out.  Many applications will need to process its data using
<span class="lineNum">     462 </span>                :    information from several different locales.  Another application is
<span class="lineNum">     463 </span>                :    the implementation of the internationalization handling in the
<span class="lineNum">     464 </span>                :    upcoming ISO C++ standard library.  To support this another set of
<span class="lineNum">     465 </span>                :    the functions using locale data exist which have an additional
<span class="lineNum">     466 </span>                :    argument.
<span class="lineNum">     467 </span>                : 
<span class="lineNum">     468 </span>                :    Attention: all these functions are *not* standardized in any form.
<span class="lineNum">     469 </span>                :    This is a proof-of-concept implementation.  */
<span class="lineNum">     470 </span>                : 
<span class="lineNum">     471 </span>                : /* Structure for reentrant locale using functions.  This is an
<span class="lineNum">     472 </span>                :    (almost) opaque type for the user level programs.  */
<span class="lineNum">     473 </span>                : # include &lt;xlocale.h&gt;
<span class="lineNum">     474 </span>                : 
<span class="lineNum">     475 </span>                : /* Special versions of the functions above which take the locale to
<span class="lineNum">     476 </span>                :    use as an additional parameter.  */
<span class="lineNum">     477 </span>                : extern long int wcstol_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     478 </span>                :                           wchar_t **__restrict __endptr, int __base,
<span class="lineNum">     479 </span>                :                           __locale_t __loc) __THROW;
<span class="lineNum">     480 </span>                : 
<span class="lineNum">     481 </span>                : extern unsigned long int wcstoul_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     482 </span>                :                                     wchar_t **__restrict __endptr,
<span class="lineNum">     483 </span>                :                                     int __base, __locale_t __loc) __THROW;
<span class="lineNum">     484 </span>                : 
<span class="lineNum">     485 </span>                : __extension__
<span class="lineNum">     486 </span>                : extern long long int wcstoll_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     487 </span>                :                                 wchar_t **__restrict __endptr,
<span class="lineNum">     488 </span>                :                                 int __base, __locale_t __loc) __THROW;
<span class="lineNum">     489 </span>                : 
<span class="lineNum">     490 </span>                : __extension__
<span class="lineNum">     491 </span>                : extern unsigned long long int wcstoull_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     492 </span>                :                                           wchar_t **__restrict __endptr,
<span class="lineNum">     493 </span>                :                                           int __base, __locale_t __loc)
<span class="lineNum">     494 </span>                :      __THROW;
<span class="lineNum">     495 </span>                : 
<span class="lineNum">     496 </span>                : extern double wcstod_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     497 </span>                :                         wchar_t **__restrict __endptr, __locale_t __loc)
<span class="lineNum">     498 </span>                :      __THROW;
<span class="lineNum">     499 </span>                : 
<span class="lineNum">     500 </span>                : extern float wcstof_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     501 </span>                :                        wchar_t **__restrict __endptr, __locale_t __loc)
<span class="lineNum">     502 </span>                :      __THROW;
<span class="lineNum">     503 </span>                : 
<span class="lineNum">     504 </span>                : extern long double wcstold_l (__const wchar_t *__restrict __nptr,
<span class="lineNum">     505 </span>                :                               wchar_t **__restrict __endptr,
<span class="lineNum">     506 </span>                :                               __locale_t __loc) __THROW;
<span class="lineNum">     507 </span>                : #endif /* GNU */
<span class="lineNum">     508 </span>                : 
<span class="lineNum">     509 </span>                : 
<span class="lineNum">     510 </span>                : #ifdef  __USE_GNU
<span class="lineNum">     511 </span>                : /* Copy SRC to DEST, returning the address of the terminating L'\0' in
<span class="lineNum">     512 </span>                :    DEST.  */
<span class="lineNum">     513 </span>                : extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __THROW;
<span class="lineNum">     514 </span>                : 
<span class="lineNum">     515 </span>                : /* Copy no more than N characters of SRC to DEST, returning the address of
<span class="lineNum">     516 </span>                :    the last character written into DEST.  */
<span class="lineNum">     517 </span>                : extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
<span class="lineNum">     518 </span>                :      __THROW;
<span class="lineNum">     519 </span>                : #endif  /* use GNU */
<span class="lineNum">     520 </span>                : 
<span class="lineNum">     521 </span>                : 
<span class="lineNum">     522 </span>                : /* Wide character I/O functions.  */
<span class="lineNum">     523 </span>                : 
<span class="lineNum">     524 </span>                : #ifdef  __USE_GNU
<span class="lineNum">     525 </span>                : /* Like OPEN_MEMSTREAM, but the stream is wide oriented and produces
<span class="lineNum">     526 </span>                :    a wide character string.  */
<span class="lineNum">     527 </span>                : extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW;
<span class="lineNum">     528 </span>                : #endif
<span class="lineNum">     529 </span>                : 
<span class="lineNum">     530 </span>                : #if defined __USE_ISOC95 || defined __USE_UNIX98
<span class="lineNum">     531 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     532 </span>                : 
<span class="lineNum">     533 </span>                : /* Select orientation for stream.  */
<span class="lineNum">     534 </span>                : extern int fwide (__FILE *__fp, int __mode) __THROW;
<span class="lineNum">     535 </span>                : 
<span class="lineNum">     536 </span>                : 
<span class="lineNum">     537 </span>                : /* Write formatted output to STREAM.
<span class="lineNum">     538 </span>                : 
<span class="lineNum">     539 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     540 </span>                :    marked with __THROW.  */
<span class="lineNum">     541 </span>                : extern int fwprintf (__FILE *__restrict __stream,
<span class="lineNum">     542 </span>                :                      __const wchar_t *__restrict __format, ...)
<span class="lineNum">     543 </span>                :      /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */;
<span class="lineNum">     544 </span>                : /* Write formatted output to stdout.
<span class="lineNum">     545 </span>                : 
<span class="lineNum">     546 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     547 </span>                :    marked with __THROW.  */
<span class="lineNum">     548 </span>                : extern int wprintf (__const wchar_t *__restrict __format, ...)
<span class="lineNum">     549 </span>                :      /* __attribute__ ((__format__ (__wprintf__, 1, 2))) */;
<span class="lineNum">     550 </span>                : /* Write formatted output of at most N characters to S.  */
<span class="lineNum">     551 </span>                : extern int swprintf (wchar_t *__restrict __s, size_t __n,
<span class="lineNum">     552 </span>                :                      __const wchar_t *__restrict __format, ...)
<span class="lineNum">     553 </span>                :      __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 4))) */;
<span class="lineNum">     554 </span>                : 
<span class="lineNum">     555 </span>                : /* Write formatted output to S from argument list ARG.
<span class="lineNum">     556 </span>                : 
<span class="lineNum">     557 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     558 </span>                :    marked with __THROW.  */
<span class="lineNum">     559 </span>                : extern int vfwprintf (__FILE *__restrict __s,
<span class="lineNum">     560 </span>                :                       __const wchar_t *__restrict __format,
<span class="lineNum">     561 </span>                :                       __gnuc_va_list __arg)
<span class="lineNum">     562 </span>                :      /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */;
<span class="lineNum">     563 </span>                : /* Write formatted output to stdout from argument list ARG.
<span class="lineNum">     564 </span>                : 
<span class="lineNum">     565 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     566 </span>                :    marked with __THROW.  */
<span class="lineNum">     567 </span>                : extern int vwprintf (__const wchar_t *__restrict __format,
<span class="lineNum">     568 </span>                :                      __gnuc_va_list __arg)
<span class="lineNum">     569 </span>                :      /* __attribute__ ((__format__ (__wprintf__, 1, 0))) */;
<span class="lineNum">     570 </span>                : /* Write formatted output of at most N character to S from argument
<span class="lineNum">     571 </span>                :    list ARG.  */
<span class="lineNum">     572 </span>                : extern int vswprintf (wchar_t *__restrict __s, size_t __n,
<span class="lineNum">     573 </span>                :                       __const wchar_t *__restrict __format,
<span class="lineNum">     574 </span>                :                       __gnuc_va_list __arg)
<span class="lineNum">     575 </span>                :      __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
<span class="lineNum">     576 </span>                : 
<span class="lineNum">     577 </span>                : 
<span class="lineNum">     578 </span>                : /* Read formatted input from STREAM.
<span class="lineNum">     579 </span>                : 
<span class="lineNum">     580 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     581 </span>                :    marked with __THROW.  */
<span class="lineNum">     582 </span>                : extern int fwscanf (__FILE *__restrict __stream,
<span class="lineNum">     583 </span>                :                     __const wchar_t *__restrict __format, ...)
<span class="lineNum">     584 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
<span class="lineNum">     585 </span>                : /* Read formatted input from stdin.
<span class="lineNum">     586 </span>                : 
<span class="lineNum">     587 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     588 </span>                :    marked with __THROW.  */
<span class="lineNum">     589 </span>                : extern int wscanf (__const wchar_t *__restrict __format, ...)
<span class="lineNum">     590 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 1, 2))) */;
<span class="lineNum">     591 </span>                : /* Read formatted input from S.  */
<span class="lineNum">     592 </span>                : extern int swscanf (__const wchar_t *__restrict __s,
<span class="lineNum">     593 </span>                :                     __const wchar_t *__restrict __format, ...)
<span class="lineNum">     594 </span>                :      __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
<span class="lineNum">     595 </span>                : 
<span class="lineNum">     596 </span>                : # if defined __USE_ISOC99 &amp;&amp; !defined __USE_GNU \
<span class="lineNum">     597 </span>                :      &amp;&amp; (!defined __LDBL_COMPAT || !defined __REDIRECT) \
<span class="lineNum">     598 </span>                :      &amp;&amp; (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
<span class="lineNum">     599 </span>                : #  ifdef __REDIRECT
<span class="lineNum">     600 </span>                : /* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[
<span class="lineNum">     601 </span>                :    GNU extension which conflicts with valid %a followed by letter
<span class="lineNum">     602 </span>                :    s, S or [.  */
<span class="lineNum">     603 </span>                : extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
<span class="lineNum">     604 </span>                :                                  __const wchar_t *__restrict __format, ...),
<span class="lineNum">     605 </span>                :                        __isoc99_fwscanf)
<span class="lineNum">     606 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
<span class="lineNum">     607 </span>                : extern int __REDIRECT (wscanf, (__const wchar_t *__restrict __format, ...),
<span class="lineNum">     608 </span>                :                        __isoc99_wscanf)
<span class="lineNum">     609 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 1, 2))) */;
<span class="lineNum">     610 </span>                : extern int __REDIRECT (swscanf, (__const wchar_t *__restrict __s,
<span class="lineNum">     611 </span>                :                                  __const wchar_t *__restrict __format, ...),
<span class="lineNum">     612 </span>                :                        __isoc99_swscanf)
<span class="lineNum">     613 </span>                :      __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
<span class="lineNum">     614 </span>                : #  else
<span class="lineNum">     615 </span>                : extern int __isoc99_fwscanf (__FILE *__restrict __stream,
<span class="lineNum">     616 </span>                :                              __const wchar_t *__restrict __format, ...);
<span class="lineNum">     617 </span>                : extern int __isoc99_wscanf (__const wchar_t *__restrict __format, ...);
<span class="lineNum">     618 </span>                : extern int __isoc99_swscanf (__const wchar_t *__restrict __s,
<span class="lineNum">     619 </span>                :                              __const wchar_t *__restrict __format, ...)
<span class="lineNum">     620 </span>                :      __THROW;
<span class="lineNum">     621 </span>                : #   define fwscanf __isoc99_fwscanf
<span class="lineNum">     622 </span>                : #   define wscanf __isoc99_wscanf
<span class="lineNum">     623 </span>                : #   define swscanf __isoc99_swscanf
<span class="lineNum">     624 </span>                : #  endif
<span class="lineNum">     625 </span>                : # endif
<span class="lineNum">     626 </span>                : 
<span class="lineNum">     627 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     628 </span>                : #endif /* Use ISO C95, C99 and Unix98. */
<span class="lineNum">     629 </span>                : 
<span class="lineNum">     630 </span>                : #ifdef __USE_ISOC99
<span class="lineNum">     631 </span>                : __BEGIN_NAMESPACE_C99
<span class="lineNum">     632 </span>                : /* Read formatted input from S into argument list ARG.
<span class="lineNum">     633 </span>                : 
<span class="lineNum">     634 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     635 </span>                :    marked with __THROW.  */
<span class="lineNum">     636 </span>                : extern int vfwscanf (__FILE *__restrict __s,
<span class="lineNum">     637 </span>                :                      __const wchar_t *__restrict __format,
<span class="lineNum">     638 </span>                :                      __gnuc_va_list __arg)
<span class="lineNum">     639 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
<span class="lineNum">     640 </span>                : /* Read formatted input from stdin into argument list ARG.
<span class="lineNum">     641 </span>                : 
<span class="lineNum">     642 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     643 </span>                :    marked with __THROW.  */
<span class="lineNum">     644 </span>                : extern int vwscanf (__const wchar_t *__restrict __format,
<span class="lineNum">     645 </span>                :                     __gnuc_va_list __arg)
<span class="lineNum">     646 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 1, 0))) */;
<span class="lineNum">     647 </span>                : /* Read formatted input from S into argument list ARG.  */
<span class="lineNum">     648 </span>                : extern int vswscanf (__const wchar_t *__restrict __s,
<span class="lineNum">     649 </span>                :                      __const wchar_t *__restrict __format,
<span class="lineNum">     650 </span>                :                      __gnuc_va_list __arg)
<span class="lineNum">     651 </span>                :      __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
<span class="lineNum">     652 </span>                : 
<span class="lineNum">     653 </span>                : # if !defined __USE_GNU \
<span class="lineNum">     654 </span>                :      &amp;&amp; (!defined __LDBL_COMPAT || !defined __REDIRECT) \
<span class="lineNum">     655 </span>                :      &amp;&amp; (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
<span class="lineNum">     656 </span>                : #  ifdef __REDIRECT
<span class="lineNum">     657 </span>                : extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
<span class="lineNum">     658 </span>                :                                   __const wchar_t *__restrict __format,
<span class="lineNum">     659 </span>                :                                   __gnuc_va_list __arg), __isoc99_vfwscanf)
<span class="lineNum">     660 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
<span class="lineNum">     661 </span>                : extern int __REDIRECT (vwscanf, (__const wchar_t *__restrict __format,
<span class="lineNum">     662 </span>                :                                  __gnuc_va_list __arg), __isoc99_vwscanf)
<span class="lineNum">     663 </span>                :      /* __attribute__ ((__format__ (__wscanf__, 1, 0))) */;
<span class="lineNum">     664 </span>                : extern int __REDIRECT (vswscanf, (__const wchar_t *__restrict __s,
<span class="lineNum">     665 </span>                :                                   __const wchar_t *__restrict __format,
<span class="lineNum">     666 </span>                :                                   __gnuc_va_list __arg), __isoc99_vswscanf)
<span class="lineNum">     667 </span>                :      __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
<span class="lineNum">     668 </span>                : #  else
<span class="lineNum">     669 </span>                : extern int __isoc99_vfwscanf (__FILE *__restrict __s,
<span class="lineNum">     670 </span>                :                               __const wchar_t *__restrict __format,
<span class="lineNum">     671 </span>                :                               __gnuc_va_list __arg);
<span class="lineNum">     672 </span>                : extern int __isoc99_vwscanf (__const wchar_t *__restrict __format,
<span class="lineNum">     673 </span>                :                              __gnuc_va_list __arg);
<span class="lineNum">     674 </span>                : extern int __isoc99_vswscanf (__const wchar_t *__restrict __s,
<span class="lineNum">     675 </span>                :                               __const wchar_t *__restrict __format,
<span class="lineNum">     676 </span>                :                               __gnuc_va_list __arg) __THROW;
<span class="lineNum">     677 </span>                : #   define vfwscanf __isoc99_vfwscanf
<span class="lineNum">     678 </span>                : #   define vwscanf __isoc99_vwscanf
<span class="lineNum">     679 </span>                : #   define vswscanf __isoc99_vswscanf
<span class="lineNum">     680 </span>                : #  endif
<span class="lineNum">     681 </span>                : # endif
<span class="lineNum">     682 </span>                : 
<span class="lineNum">     683 </span>                : __END_NAMESPACE_C99
<span class="lineNum">     684 </span>                : #endif /* Use ISO C99. */
<span class="lineNum">     685 </span>                : 
<span class="lineNum">     686 </span>                : 
<span class="lineNum">     687 </span>                : __BEGIN_NAMESPACE_STD
<span class="lineNum">     688 </span>                : /* Read a character from STREAM.
<span class="lineNum">     689 </span>                : 
<span class="lineNum">     690 </span>                :    These functions are possible cancellation points and therefore not
<span class="lineNum">     691 </span>                :    marked with __THROW.  */
<span class="lineNum">     692 </span>                : extern wint_t fgetwc (__FILE *__stream);
<span class="lineNum">     693 </span>                : extern wint_t getwc (__FILE *__stream);
<span class="lineNum">     694 </span>                : 
<span class="lineNum">     695 </span>                : /* Read a character from stdin.
<span class="lineNum">     696 </span>                : 
<span class="lineNum">     697 </span>                :    This function is a possible cancellation point and therefore not
<span class="lineNum">     698 </span>                :    marked with __THROW.  */
<span class="lineNum">     699 </span>                : extern wint_t getwchar (void);
<span class="lineNum">     700 </span>                : 
<span class="lineNum">     701 </span>                : 
<span class="lineNum">     702 </span>                : /* Write a character to STREAM.
<span class="lineNum">     703 </span>                : 
<span class="lineNum">     704 </span>                :    These functions are possible cancellation points and therefore not
<span class="lineNum">     705 </span>                :    marked with __THROW.  */
<span class="lineNum">     706 </span>                : extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
<span class="lineNum">     707 </span>                : extern wint_t putwc (wchar_t __wc, __FILE *__stream);
<span class="lineNum">     708 </span>                : 
<span class="lineNum">     709 </span>                : /* Write a character to stdout.
<span class="lineNum">     710 </span>                : 
<span class="lineNum">     711 </span>                :    This function is a possible cancellation points and therefore not
<span class="lineNum">     712 </span>                :    marked with __THROW.  */
<span class="lineNum">     713 </span>                : extern wint_t putwchar (wchar_t __wc);
<span class="lineNum">     714 </span>                : 
<span class="lineNum">     715 </span>                : 
<span class="lineNum">     716 </span>                : /* Get a newline-terminated wide character string of finite length
<span class="lineNum">     717 </span>                :    from STREAM.
<span class="lineNum">     718 </span>                : 
<span class="lineNum">     719 </span>                :    This function is a possible cancellation points and therefore not
<span class="lineNum">     720 </span>                :    marked with __THROW.  */
<span class="lineNum">     721 </span>                : extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
<span class="lineNum">     722 </span>                :                         __FILE *__restrict __stream);
<span class="lineNum">     723 </span>                : 
<span class="lineNum">     724 </span>                : /* Write a string to STREAM.
<span class="lineNum">     725 </span>                : 
<span class="lineNum">     726 </span>                :    This function is a possible cancellation points and therefore not
<span class="lineNum">     727 </span>                :    marked with __THROW.  */
<span class="lineNum">     728 </span>                : extern int fputws (__const wchar_t *__restrict __ws,
<span class="lineNum">     729 </span>                :                    __FILE *__restrict __stream);
<span class="lineNum">     730 </span>                : 
<span class="lineNum">     731 </span>                : 
<span class="lineNum">     732 </span>                : /* Push a character back onto the input buffer of STREAM.
<span class="lineNum">     733 </span>                : 
<span class="lineNum">     734 </span>                :    This function is a possible cancellation points and therefore not
<span class="lineNum">     735 </span>                :    marked with __THROW.  */
<span class="lineNum">     736 </span>                : extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
<span class="lineNum">     737 </span>                : __END_NAMESPACE_STD
<span class="lineNum">     738 </span>                : 
<span class="lineNum">     739 </span>                : 
<span class="lineNum">     740 </span>                : #ifdef __USE_GNU
<span class="lineNum">     741 </span>                : /* These are defined to be equivalent to the `char' functions defined
<span class="lineNum">     742 </span>                :    in POSIX.1:1996.
<span class="lineNum">     743 </span>                : 
<span class="lineNum">     744 </span>                :    These functions are not part of POSIX and therefore no official
<span class="lineNum">     745 </span>                :    cancellation point.  But due to similarity with an POSIX interface
<span class="lineNum">     746 </span>                :    or due to the implementation they are cancellation points and
<span class="lineNum">     747 </span>                :    therefore not marked with __THROW.  */
<span class="lineNum">     748 </span>                : extern wint_t getwc_unlocked (__FILE *__stream);
<span class="lineNum">     749 </span>                : extern wint_t getwchar_unlocked (void);
<span class="lineNum">     750 </span>                : 
<span class="lineNum">     751 </span>                : /* This is the wide character version of a GNU extension.
<span class="lineNum">     752 </span>                : 
<span class="lineNum">     753 </span>                :    This function is not part of POSIX and therefore no official
<span class="lineNum">     754 </span>                :    cancellation point.  But due to similarity with an POSIX interface
<span class="lineNum">     755 </span>                :    or due to the implementation it is a cancellation point and
<span class="lineNum">     756 </span>                :    therefore not marked with __THROW.  */
<span class="lineNum">     757 </span>                : extern wint_t fgetwc_unlocked (__FILE *__stream);
<span class="lineNum">     758 </span>                : 
<span class="lineNum">     759 </span>                : /* Faster version when locking is not necessary.
<span class="lineNum">     760 </span>                : 
<span class="lineNum">     761 </span>                :    This function is not part of POSIX and therefore no official
<span class="lineNum">     762 </span>                :    cancellation point.  But due to similarity with an POSIX interface
<span class="lineNum">     763 </span>                :    or due to the implementation it is a cancellation point and
<span class="lineNum">     764 </span>                :    therefore not marked with __THROW.  */
<span class="lineNum">     765 </span>                : extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
<span class="lineNum">     766 </span>                : 
<span class="lineNum">     767 </span>                : /* These are defined to be equivalent to the `char' functions defined
<span class="lineNum">     768 </span>                :    in POSIX.1:1996.
<span class="lineNum">     769 </span>                : 
<span class="lineNum">     770 </span>                :    These functions are not part of POSIX and therefore no official
<span class="lineNum">     771 </span>                :    cancellation point.  But due to similarity with an POSIX interface
<span class="lineNum">     772 </span>                :    or due to the implementation they are cancellation points and
<span class="lineNum">     773 </span>                :    therefore not marked with __THROW.  */
<span class="lineNum">     774 </span>                : extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
<span class="lineNum">     775 </span>                : extern wint_t putwchar_unlocked (wchar_t __wc);
<span class="lineNum">     776 </span>                : 
<span class="lineNum">     777 </span>                : 
<span class="lineNum">     778 </span>                : /* This function does the same as `fgetws' but does not lock the stream.
<span class="lineNum">     779 </span>                : 
<span class="lineNum">     780 </span>                :    This function is not part of POSIX and therefore no official
<span class="lineNum">     781 </span>                :    cancellation point.  But due to similarity with an POSIX interface
<span class="lineNum">     782 </span>                :    or due to the implementation it is a cancellation point and
<span class="lineNum">     783 </span>                :    therefore not marked with __THROW.  */
<span class="lineNum">     784 </span>                : extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
<span class="lineNum">     785 </span>                :                                  __FILE *__restrict __stream);
<span class="lineNum">     786 </span>                : 
<span class="lineNum">     787 </span>                : /* This function does the same as `fputws' but does not lock the stream.
<span class="lineNum">     788 </span>                : 
<span class="lineNum">     789 </span>                :    This function is not part of POSIX and therefore no official
<span class="lineNum">     790 </span>                :    cancellation point.  But due to similarity with an POSIX interface
<span class="lineNum">     791 </span>                :    or due to the implementation it is a cancellation point and
<span class="lineNum">     792 </span>                :    therefore not marked with __THROW.  */
<span class="lineNum">     793 </span>                : extern int fputws_unlocked (__const wchar_t *__restrict __ws,
<span class="lineNum">     794 </span>                :                             __FILE *__restrict __stream);
<span class="lineNum">     795 </span>                : #endif
<span class="lineNum">     796 </span>                : 
<span class="lineNum">     797 </span>                : 
<span class="lineNum">     798 </span>                : __BEGIN_NAMESPACE_C99
<span class="lineNum">     799 </span>                : /* Format TP into S according to FORMAT.
<span class="lineNum">     800 </span>                :    Write no more than MAXSIZE wide characters and return the number
<span class="lineNum">     801 </span>                :    of wide characters written, or 0 if it would exceed MAXSIZE.  */
<span class="lineNum">     802 </span>                : extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
<span class="lineNum">     803 </span>                :                         __const wchar_t *__restrict __format,
<span class="lineNum">     804 </span>                :                         __const struct tm *__restrict __tp) __THROW;
<span class="lineNum">     805 </span>                : __END_NAMESPACE_C99
<span class="lineNum">     806 </span>                : 
<span class="lineNum">     807 </span>                : # ifdef __USE_GNU
<span class="lineNum">     808 </span>                : # include &lt;xlocale.h&gt;
<span class="lineNum">     809 </span>                : 
<span class="lineNum">     810 </span>                : /* Similar to `wcsftime' but takes the information from
<span class="lineNum">     811 </span>                :    the provided locale and not the global locale.  */
<span class="lineNum">     812 </span>                : extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
<span class="lineNum">     813 </span>                :                           __const wchar_t *__restrict __format,
<span class="lineNum">     814 </span>                :                           __const struct tm *__restrict __tp,
<span class="lineNum">     815 </span>                :                           __locale_t __loc) __THROW;
<span class="lineNum">     816 </span>                : # endif
<span class="lineNum">     817 </span>                : 
<span class="lineNum">     818 </span>                : /* The X/Open standard demands that most of the functions defined in
<span class="lineNum">     819 </span>                :    the &lt;wctype.h&gt; header must also appear here.  This is probably
<span class="lineNum">     820 </span>                :    because some X/Open members wrote their implementation before the
<span class="lineNum">     821 </span>                :    ISO C standard was published and introduced the better solution.
<span class="lineNum">     822 </span>                :    We have to provide these definitions for compliance reasons but we
<span class="lineNum">     823 </span>                :    do this nonsense only if really necessary.  */
<span class="lineNum">     824 </span>                : #if defined __USE_UNIX98 &amp;&amp; !defined __USE_GNU
<span class="lineNum">     825 </span>                : # define __need_iswxxx
<span class="lineNum">     826 </span>                : # include &lt;wctype.h&gt;
<span class="lineNum">     827 </span>                : #endif
<span class="lineNum">     828 </span>                : 
<span class="lineNum">     829 </span>                : /* Define some macros helping to catch buffer overflows.  */
<span class="lineNum">     830 </span>                : #if __USE_FORTIFY_LEVEL &gt; 0 &amp;&amp; defined __extern_always_inline
<span class="lineNum">     831 </span>                : # include &lt;bits/wchar2.h&gt;
<span class="lineNum">     832 </span>                : #endif
<span class="lineNum">     833 </span>                : 
<span class="lineNum">     834 </span>                : #ifdef __LDBL_COMPAT
<span class="lineNum">     835 </span>                : # include &lt;bits/wchar-ldbl.h&gt;
<span class="lineNum">     836 </span>                : #endif
<span class="lineNum">     837 </span>                : 
<span class="lineNum">     838 </span>                : __END_DECLS
<span class="lineNum">     839 </span>                : 
<span class="lineNum">     840 </span>                : #endif  /* _WCHAR_H defined */
<span class="lineNum">     841 </span>                : 
<span class="lineNum">     842 </span>                : /* Undefined all __need_* constants in case we are included to get those
<span class="lineNum">     843 </span>                :    constants but the whole file was already read.  */
<span class="lineNum">     844 </span>                : #undef __need_mbstate_t
<span class="lineNum">     845 </span>                : #undef __need_wint_t
<span class="lineNum">     846 </span>                : 
<span class="lineNum">     847 </span>                : #endif /* wchar.h  */
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
